﻿using Esri.ArcGISRuntime;
using Esri.ArcGISRuntime.Maui;

namespace QuickReportMaui;

public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
        builder
            .UseMauiApp<App>()
            .UseMauiCommunityToolkit()
            .ConfigureFonts(fonts =>
            {
                fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
            });

        builder.Services.AddSingleton<MainPage>();
        builder.UseArcGISRuntime(configure => { configure.UseApiKey("AAPKdb651e14b8204bd5abf0ffc20363a94cse0GEQoKoCaYa5ZlJ3v5TZi9LNz0OIL66WTsqHrzPTls3Zeq4rLC08zbB-qakYx4"); });

        return builder.Build();
    }
}
